package com.xinke.edu.mypetadoption.net;


import com.xinke.edu.mypetadoption.entity.Product;
import com.xinke.edu.mypetadoption.entity.ProductCategory;
import com.xinke.edu.mypetadoption.entity.ResultBody;

import java.util.List;

import io.reactivex.rxjava3.core.Observable;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;


public interface ApiService {
    String BaseURL="http://192.168.100.16:8080/";

    @GET("pro/get")
    Observable<ResultBody<List<ProductCategory>>> getType();


    @FormUrlEncoded
    @POST("product/selectProduct")
    Observable<ResultBody<List<Product>>> getProduct(@Field("keyword")String keyword,@Field("categoryId")int categoryId,@Field("pageIndex")int pageIndex,@Field("pageSize")int pageSize);

}

